<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
    <bean name="quartzScheduler"
          class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
        <property name="triggers">
            <list>
            	<!-- zhongkezhi out of memory
                <ref bean="cronTrigger"/>
                -->         
                <ref bean="workflowAgentTrigger"/>       
                <ref bean="meetingTrigger"/>
                <!--<ref bean="dataSyncTrigger"/> -->
                <ref bean="dataSyncAllTrigger"/>
                <ref bean="messageTrigger"/> 
                <ref bean="docexCleanerTrigger"/>               
                <ref bean="systemCleanerTrigger"/>
                <ref bean="booksBorrowTrigger"/>
                <ref bean="checkworkInfoTrigger"/>
                <ref bean="checkworkReportTrigger"/>
                <ref bean="driveLicenceTimeOutTrigger"/>
                <ref bean="getCarTimeOutTrigger"/>
                <ref bean="carYearTrigger"/>
                <ref bean="carNextYearTrigger"/>
                <!-- 天气预报定时器 dexiang_lei -->
                <ref bean="weatherRssTrigger"/>
                
		  <!-- 
                <ref bean="archiveSyncTrigger"/>
                 -->
                 
                 <!-- 打了K3ERP集成一期补丁包后业务系统消息集成的消息同步使用integrationMessageSyncTrigger来调度， 
                	该任务是同步K3所有已配置的子系统未读消息到OA业务系统消息模块
                	原messageSyncTrigger直接同步K3HR消息到OA通知消息，两个任务内容有重复，请按需配置。
                -->
                <ref bean="integrationMessageSyncTrigger"/>
                <!-- 清理同步任务，删除一个月以前的同步任务数据，默认设置每月清理一次 -->
                <ref bean="integrationMsgSyncTaskTrigger"/>
                <!-- 清理业务系统消息，默认删除三个月以前的业务消息数据，每天清理 -->
                <ref bean="integrationMsgClearTrigger"/>
                 
                <!--<ref bean="messageSyncTrigger"/>-->
                <!-- <ref bean="gwjhTrigger"/> -->
                <!-- 已经未用的模块屏蔽掉  
                <ref bean="calendarTrigger"/>
                <ref bean="carsGotoTrigger"/>
                <ref bean="carsGotoInfoTrigger"/>
                -->
                <!-- PT042268 此补丁被漏掉 增加上  -->
                <ref bean="mailTrigger"/>
                <!-- add by liuzhengwei 2010-10-27 start  定时检查已经结束的、并且没有发送过通知记录会议纪要的会议-->
            	 <ref bean="meetingSummaryNoticeTrigger"/>
            	<!-- add by liuzhengwei 2010-10-27 end-->
            	
            	<!--modify by liuhai-->
                <ref bean="inspectSnSearchTaskTrigger"/>
                <ref bean="fileConvertTrigger"/>
                <ref bean="webIMTrigger"/>
                <ref bean="ecpSessionTrigger"/>
            
            </list>
        </property>
        <!--<property name="dataSource" ref="dataSource"/>-->
        <property name="configLocation">
        	<value>file:${oa_application.config}/conf/quartz.properties</value>
        </property>
    </bean>
    <!-- 协同工作定期清理  add by jin_zeng, process by dong_zhang in V6.0 -->
    <bean id="docexCleanerTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="docexCleanerDetail"/>
        </property>
		<!-- 协同工作定期清理  每天半夜2点钟 执行清理工作-->
        <property name="cronExpression">
        	<value>0 0 2 *,* * ?</value>
        </property>
	</bean>
	<bean id="docexCleanerDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="docexCleaner"/>
    	</property>
    	<property name="targetMethod">
    		<value>clean</value>
    	</property>
    </bean>
    
     <!-- Flex在线阅读器 定时将未设置启用转换的文件送往转换服务器转换  add by zhenzhen_zhang V6.2 -->
    <bean id="fileConvertTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="fileConvertDetail"/>
        </property>
		<!-- Flex在线阅读器,定时将未设置启用转换的文件送往转换服务器转换,每天半夜12点钟 执行转换  (现在暂时定为中午12点，方便测试)-->
        <property name="cronExpression">
        	<value>0 0 23 * * ?</value>
        </property>
	</bean>
	<bean id="fileConvertDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="fileConvertChecker"/>
    	</property>
    	<property name="targetMethod">
    		<value>fileConvert</value>
    	</property>
    </bean>
    
      <!--WEBIM定时清理历史消息 2012-2-22  add by zhenzhen_zhang V6.2 -->
    <bean id="webIMTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="webIMDetail"/>
        </property>
		 <!--WEBIM定时清理历史消息 2012-2-22  add by zhenzhen_zhang V6.2 每天凌晨2点清理一次以前的历史消息数据-->
        <property name="cronExpression">
        	<value>0 0 12 * * ?</value>
        </property>
	</bean>
	<bean id="webIMDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="webIMChecker"/>
    	</property>
    	<property name="targetMethod">
    		<value>deleteHistoryMessage</value>
    	</property>
    </bean>
    
    <!-- 天气预报以及Rss定时器 
    	1.秒2.分3.小时4.月份中的日期（1-31）5.月份（1-12或JAN-DEC)6.星期中的日期（1-7或SUN-SAT）7.年份（1970-2099） 
		每个元素都显示的规定一个值（如6），一个区间（9-12），一个列表（9，11，13）或一个通配符（*）。
		因为4和6这两个元素是互斥的，因此应该通过设置一个问号（？）来表明不想设置的那个字段，“/”如果值组合就表示重复次数（10/6表示每10秒重复6次）。  dexiang_lei-->
    <bean id="weatherRssTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="weatherRssDetail"/>
        </property>
		
        <property name="cronExpression">
        	<value>0 0 7,10,13,16 * * ?</value>
        </property>
	</bean>
	<bean id="weatherRssDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="weatherRssChecker"/>
    	</property>
    	<property name="targetMethod">
    		<value>downLoadWeatherRssInfo</value>
    	</property>
    </bean>
    
    <!-- 同步集成消息到OA业务系统消息，默认设置每10分钟同步一次，可根据需要重新设置，参照K3消息数据量的多少最好不要太短 也不能太长 -->
    <bean id="integrationMessageSyncTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="integrationMessageSyncDetail"/>
        </property>
        <property name="cronExpression">
        	<value>0 0/10 * *,* * ?</value>
        </property>
    </bean>
    <!-- 清理业务消息同步任务数据，每个月1号清理一次一个月以前的数据 -->
    <bean id="integrationMsgSyncTaskTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="integrationMsgSyncTaskDetail"/>
        </property>   
        <property name="cronExpression">
        	<value>0 0 0 1 * ?</value>
        </property>
    </bean> 
    <!-- 清理业务消息数据，每天凌晨2点清理一次三个月以前的数据 -->
    <bean id="integrationMsgClearTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="integrationMsgClearDetail"/>
        </property>   
        <property name="cronExpression">
        	<value>0 0 2 *,* * ?</value>
        </property>
    </bean> 
    
    
    
    <bean id="messageSyncTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="messagesSyncDetail"/>
        </property>
        <!--k3 hr的任务消息同步到OA的通知消息-->   
        <property name="cronExpression">
        	<value>0 0/5 * *,* * ?</value>
        </property>
    </bean>
    <bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="jobDetail"/>
        </property>
        <!--公文催办，从执行时刻开始，每个一个小时检查一次-->   
        <property name="cronExpression">
        	<value>0 0/60 9-23 *,* * ?</value>
        </property>
    </bean>
    <!-- 日程检查，在全天9点到23点，每隔一刻钟检查一次

    <bean id="calendarTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="calendarDetail"/>
        </property>
        <property name="cronExpression">
        	<value>0 0,15,30,45 7-23 *,* * ?</value>
        </property>
    </bean>
     -->
    <bean id="meetingTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="meetingDetail"/>
        </property>
        <!--会议检查，在全天9点到23点，每隔一刻钟检查一次-->
        <property name="cronExpression">
        	<value>0 0,15,30,45 7-23 *,* * ?</value>
        </property>
    </bean>  
    
   <bean id="carNextYearTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
   	<property name="jobDetail">
   		<ref local="carNextYearDetail"/>
   	</property>
   	<property name="cronExpression">
   		<value>0 0 2 *,* * ?</value>
   	</property>
   </bean>
    
    <bean id="carYearTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
		<property name="jobDetail">
			<ref local="carYearDetail"/>
		</property>
		<property name="cronExpression">
			<value>0 0 2 *,* * ?</value>
		</property>    
    </bean>  
    
    <bean id="getCarTimeOutTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="getCarTimeOutDetail"/>
    	</property>
    	<property name="cronExpression">
    		<value>0 0 2 *,* * ?</value>
    	</property>
    	
    </bean>
    
    <bean id="driveLicenceTimeOutTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="driveLicenceTimeOutDetail"/>
    	</property>
    	<property name="cronExpression">
    		<value>0 0 2 *,* * ?</value>
    	</property>
    </bean>
    
    <bean id="dataSyncTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="dataSyncDetail"/>
        </property>
        <!-- 每隔三分钟就同步一次 -->
        <property name="cronExpression">
        	<value>0 0,0/3 7-23 *,* * ?</value>
        </property>
    </bean>   
    <bean id="dataSyncAllTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="dataSyncAllDetail"/>
        </property>
        <!--所有的都同步一次，调整为每2个小时做一次，效率问题-->
        <property name="cronExpression">
        	<value>0 0 10,12,15,18,20,23 *,* * ?</value>
        </property>
    </bean>
    
    <bean id="messageTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="messageDetail"/>
        </property>
        <!--会议检查，在全天9点到23点，每隔一刻钟检查一次-->
        <property name="cronExpression">
        	<value>0 0,0/3 * *,* * ?</value>
        </property>
    </bean>
     <!--车费费用登记缴费日期检查,每隔1小时检查一次

    <bean id="carsGotoTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="carsGotoDetail"/>
        </property>
       
        <property name="cronExpression">
        	<value>0 0 0-23 * * ?</value>
        </property>
    </bean>  
    <bean id="carsGotoInfoTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="carsGotoInfoDetail"/>
        </property>
        <property name="cronExpression">
        	<value>0 0,0/5 * * * ?</value>
        </property>
    </bean>   
    -->
    
    <bean id="checkworkInfoTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
			<ref local="checkworkInfoDetail"/>
    	</property>
    	<!--每天统计一次登陆日志 -->
    	<property name="cronExpression">
    		<value>0 0 0 * * ?</value>
    	</property>
    </bean>
    <bean id="checkworkReportTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
			<ref local="checkworkReportDetail"/>
    	</property>
    	<!--每个月清理一次登陆报表 -->
    	<property name="cronExpression">
    		<value>0 0 0 1 1-12 ?</value>
    	</property>
    </bean>
    
    <bean id="booksBorrowTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="booksBorrowDetail"/>
    	</property>    
    	<!--图书借阅期限每天检查一次 -->
    	<property name="cronExpression">
    		<value>0 0 0 * * ?</value>
    	</property>
    </bean>
    
    <bean id="gwjhTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="gwjhDetail"/>
    	</property>    
    	<!-- 公文交换定时检查 在每天的 7点至23点没小时执行一次 -->
    	<property name="cronExpression">
    		<value>0 0 7-23 * * ?</value>
    	</property>
    </bean>
    
    <bean id="systemCleanerTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="systemCleanerDetail"/>
        </property>
        <!-- 每天后半夜2点钟做一次清理工作，删除历史的消息和日志，保留的期限在 -->
        <property name="cronExpression">
        	<value>0 0 2 *,* * ?</value>
        </property>
    </bean>  
    <!-- 定时收邮件 在每天的 9点至23点每小时执行一次 -->  
    <bean id="mailTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="mailDetail"/>
    	</property>    
    	
    	<property name="cronExpression">
    		<value>0 0/60 9-23 * * ?</value>
    	</property>
    </bean> 
     

    <!-- 使用pojo做job，指定pojo和method -->
    <bean id="jobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="workflowChecker"/>
        </property>
        <property name="targetMethod">
        	<value>checkHurry</value>
        </property>
    </bean> 
    <!-- 
    <bean id="calendarDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="calendarChecker"/>
        </property>
        <property name="targetMethod">
        	<value>checkCalendar</value>
        </property>
    </bean>
     -->
    <bean id="meetingDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="meetingChecker"/>
        </property>
        <property name="targetMethod">
        	<value>checkMeeting</value>
        </property>
    </bean>
    <bean id="dataSyncDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="dataSyncChecker"/>
        </property>
        <property name="targetMethod">
        	<value>checkDataSync</value>
        </property>
    </bean>
    <bean id="dataSyncAllDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="dataSyncChecker"/>
        </property>
        <property name="targetMethod">
        	<value>dataSyncAll</value>
        </property>
    </bean>    
    <bean id="messageDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="dataSyncChecker"/>
        </property>
        <property name="targetMethod">
        	<value>checkMessage</value>
        </property>
    </bean>
    <!-- 
    <bean id="carsGotoDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="carsGotoChecker"/>
        </property>
        <property name="targetMethod">
        	<value>carsGotoChecker</value>
        </property>
    </bean>
    <bean id="carsGotoInfoDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="carsGotoChecker"/>
        </property>
        <property name="targetMethod">
        	<value>carsGotoInfoChecker</value>
        </property>
    </bean>
     -->
    <bean id="checkworkInfoDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="checkworkChecker"/>
    	</property>
    	<property name="targetMethod">
    		<value>statCheckworkInfo</value>
    	</property>
    </bean>
    <bean id="checkworkReportDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="checkworkChecker"/>
    	</property>
    	<property name="targetMethod">
    		<value>statCheckworkReport</value>
    	</property>
    </bean>
    
    <bean id="booksBorrowDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="booksBorrowChecker"/>
    	</property>
    	<property name="targetMethod">
    		<value>booksBorrowChecker</value>
    	</property>
    </bean>
    
    <bean id="carNextYearDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="carNextYearChecker"/>
    	</property>
    	<property name="targetMethod">
    		<value>checker</value>
    	</property>
    </bean>
    
    <bean id="carYearDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="carYearChecker"/>
    	</property>
    	<property name="targetMethod">
    		<value>checker</value>
    	</property>
    </bean>
    
    <bean id="getCarTimeOutDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="getCarTimeOutChecker"/>
    	</property>
    	<property name="targetMethod">
    		<value>timeOutChecking</value>
    	</property>
    </bean>
    
    
    <bean id="driveLicenceTimeOutDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="driveLicenceTimeOutChecker"/>
    	</property>
    	<property name="targetMethod">
    		<value>timeOutChecking</value>
    	</property>
    </bean>
    
    <bean id="gwjhDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="gwjhChecker"/>
    	</property>
    	<property name="targetMethod">
    		<value>checkGwjh</value>
    	</property>
    </bean>
    
    <bean id="systemCleanerDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="systemCleaner"/>
        </property>
        <property name="targetMethod">
        	<value>dataClean</value>
        </property>
    </bean>   
    <!--  -->
    <bean id="mailDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="mailChecker"/>
        </property>
        <property name="targetMethod">
        	<value>checkMail</value>
        </property>
    </bean> 
    
    
     <!-- 同步K3消息到业务系统消息模块 -->
    <bean id="integrationMessageSyncDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="integrationMessageSyncChecker"/>
        </property>
        <property name="targetMethod">
        	<value>integrationMessageSync</value>
        </property>
    </bean> 
    <!-- 清理一个月以前的业务消息同步任务 -->
    <bean id="integrationMsgSyncTaskDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="integrationMessageSyncChecker"/>
        </property>
        <property name="targetMethod">
        	<value>removeMessageSyncTaskBatch</value>
        </property>
    </bean> 
    <!-- 清理业务消息 -->
    <bean id="integrationMsgClearDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="integrationMessageSyncChecker"/>
        </property>
        <property name="targetMethod">
        	<value>integrationMessageClear</value>
        </property>
    </bean>
    
    <bean id="messagesSyncDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="messagesSyncChecker"/>
        </property>
        <property name="targetMethod">
        	<value>checkMessagesSync</value>
        </property>
    </bean> 
    <!-- add by liuzhengwei 2010-10-27 start  定时检查已经结束的、并且没有发送过通知记录会议纪要的会议-->
     <bean id="meetingSummaryNoticeTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="meetingSummaryNotice"/>
        </property>
        <!-- 每隔三分钟就检查一次 -->
        <property name="cronExpression">
        	<value>0 0,0/3 7-23 *,* * ?</value>
        </property>
    </bean>   
    <bean id="meetingSummaryNotice" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="meetingSummaryNoticeChecker"/>
        </property>
        <property name="targetMethod">
        	<value>checkMeetingForNotice</value>
        </property>
    </bean>
    <!-- add by liuzhengwei 2010-10-27 end  -->
    
    
      <bean id="inspectSnSearchTaskTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="inspectSnSearchTask"/>
    	</property>    
    	
    	<property name="cronExpression">
    		<value>0 0/15 * * * ?</value>
    	</property>
    </bean> 
    <!-- 启动督办编号的断号搜索任务 -->
	<bean id="inspectSnSearchTask" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="inspectSnRemainManager"/>
        </property>
        <property name="targetMethod">
        	<value>saveFileSnUnused</value>
        </property>
    </bean>
    
       <bean id="archiveSyncDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="archiveSyncChecker"/>
        </property>
        <property name="targetMethod">
        	<value>dataSync</value>
        </property>
    </bean>
    
     <bean id="archiveSyncTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
        <property name="jobDetail">
        	<ref local="archiveSyncDetail"/>
        </property>
        <!-- 每天后半夜2点钟同步部门与用户到档案系统 -->
        <property name="cronExpression">
        	<value>0 0 2 *,* * ?</value>
        </property>
    </bean>  
    
   <bean id="ecpSessionDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
    	<property name="targetObject">
    		<ref bean="ecpSessionChecker"/>
    	</property>
        <property name="targetMethod">
        	<value>checkEcpSession</value>
        </property>
    </bean>
    
     <bean id="ecpSessionTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="ecpSessionDetail"/>
        </property>
        <!-- 每隔三分钟就检查一次 -->
        <property name="cronExpression">
        	<value>0 0,0/3 7-23 *,* * ?</value>
        </property>
	</bean>
	
	<bean id="workflowAgentTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
    	<property name="jobDetail">
    		<ref local="workflowAgentDetail"/>
        </property>
		<!-- 协同工作定期清理  每天半夜3点钟 执行清理工作-->
        <property name="cronExpression">
        	<value>0 0 3 *,* * ?</value>
        </property>
	</bean>
    <bean id="workflowAgentDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject">
        	<ref bean="workflowFileinboxManager"/>
        </property>
        <property name="targetMethod">
        	<value>saveFlowAgentToUser</value>
        </property>
    </bean>
    
</beans>